package com.xiaolin.ssosystem.service;

import com.xiaolin.ssosystem.model.dto.LogoutDto;
import com.xiaolin.ssosystem.model.dto.UserDto;
import com.xiaolin.ssosystem.model.dto.UserInfoFetch;
import com.xiaolin.ssosystem.utils.OptResult;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author xiaolin
 * @description 描述
 * @since 2024/10/9
 */
public interface SSOService {
    OptResult login(UserDto userDto, HttpServletResponse response);

    OptResult getCode(HttpServletRequest request);

    OptResult info(UserInfoFetch userInfoFetch, HttpServletRequest request);

    OptResult logout(LogoutDto logoutDto);
}
